package cn.seocoo.platform.api.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;


@ApiModel(value="登陆form")
public class LoginForm {
    @ApiModelProperty(value="登录账号")
    @NotBlank(message="登录账号不能为空")
    @Length(min = 1,max = 20)
    private String loginName;
    
    @ApiModelProperty(value="登录密码")
    @NotBlank(message="登录密码不能为空")
    private String password;

    private Integer id;


    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
}
